package com.zz.cinema.shiro;

import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.realm.Realm;

public class MyRealm1 implements Realm {

	@Override
	public AuthenticationInfo getAuthenticationInfo(AuthenticationToken token) throws AuthenticationException {
		
		String username = (String) token.getPrincipal();	//获得用户名
		String password = (String) token.getCredentials();	//获取密码
		
		return null;
	}

	@Override
	public String getName() {
		return "MyRealm1";
	}

	@Override
	public boolean supports(AuthenticationToken arg0) {
		return false;
	}

}
